package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.NavMapper;
import com.shunbo.convenient.service.NavService;
import com.shunbo.convenient.vo.Nav;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class NavServiceImpl implements NavService {

    @Resource
    private NavMapper navMapper;

    @Override
    public Integer save(Nav obj) {
        return navMapper.save(obj);
    }

    @Override
    public Integer update(Nav obj) {
        return navMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return navMapper.delete(obj);
    }

    @Override
    public Nav findById(String obj) {
        return navMapper.findById(obj);
    }

    @Override
    public List<Nav> findAll(Nav obj) {
        return navMapper.findAll(obj);
    }
}
